hacker rank Array Left Rotation solution with explanation

visit shbcf.ru